package com.neusoft.func;

import com.neusoft.Mile;

/**
 * @description: 缺点：需要用户去了解所有工厂
 * @createDate： 2018/12/10.
 * @author： xiongshx.
 */
public class FactoryTest {
    public static void main(String[] args) {
        Factory factory = new MengniuFactory();
        Mile mile = factory.getMile();
        System.out.println(mile);
    }
}
